﻿
import flash.Lib;
import flash.display.Sprite;

import gui.hug.HUGTabbedPanel;
import gui.hug.HUGLabel;
import gui.hug.HUGSprite;


import gui.hug.HUGColors;

import gui.hug.LightButton;

class MyTabs extends Sprite
{
	private var tabbedPanel: HUGTabbedPanel;

	public function new()
	{
		super();
		Lib.current.addChild(this);
		tabbedPanel = new HUGTabbedPanel();
		this.addChild(tabbedPanel);
		tabbedPanel.visible = true;
		
		var mainTab = new HUGSprite();
		var button = new LightButton("sdf", 480, 20, 120, HUGColors.VK_BORDER_OUTER, HUGColors.VK_BUTTON, HUGColors.VK_BUTTON, HUGColors.WHITE, 0, 16);
		mainTab.addChild(button);
		
		addTab(mainTab);
		addTab(mainTab);
		
		tabbedPanel.draw();
	}
	
	public function addTab(sprite : HUGSprite) {
		tabbedPanel.addTab(sprite, "Title");
	}
}